﻿#include "mancloud.h"
#include "src/bend/dao/clouds/daoclouds.h"
#include "src/middle/manglobal.h"
#include "src/middle/signals/mansignals.h"
#include "src/plugins/manplugin.h"
ManCloud::~ManCloud()
{
    qDebug("delete ManCloud ");
    // TODO
}

void ManCloud::login(QString secretId, QString secretKey)
{
    QList<MyBucket> buckets = MG->mPlugin->clouds()->login(secretId, secretKey);
    emit            MG->mSignal->bucketsSuccess(buckets);
}
ManCloud::ManCloud(QObject* parent)
    : QObject(parent)
{}